package com.sc.app.guanwang.web;

import com.sc.base.user.bean.client.UserClient;
import com.sc.base.user.bean.dto.user.UserAddReqDto;
import com.sc.base.user.bean.dto.user.UserAddResDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author
 */
@RestController
@RequestMapping("/user")
public class UserController {


    @Autowired
    private UserClient userClient;

    @GetMapping("/add")
    public UserAddResDto add(){
        UserAddReqDto r = new UserAddReqDto();
        r.setUsername("laoma");
        r.setPassword("123456");
        r.setAge(32);
        return userClient.userAdd(r);
    }
}
